<template>
  <div id="app">
      <!-- 一级路由页面  -->

      <!-- 缓存组件  -->
      <transition name="move" mode="out-in">
        <!-- 动态的keep-alive activated  -->
        <keep-alive v-if="$route.meta.alive">
           <router-view class="mainpage"></router-view>
        </keep-alive>
         <router-view v-else class="mainpage"></router-view>
      </transition>

  </div>
</template>


<style lang="scss" scoped>
.mainpage{
  width:100%;
  height:100%;
  padding-top:46px;
}
</style>